﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Model.MetadataTypes;
namespace Model.Entities
{
    /// <summary>
    /// 实体类 计算机硬件信息, 此类请勿动，以方便表字段更改时重新生成覆盖
    /// </summary>
    [Serializable]
    [MetadataType(typeof(HRDS_COMPUTER_HARDWARE_Metadata))]
    public partial class HRDS_COMPUTER_HARDWARE
    {
        /// <summary>
        /// 创建<see cref="HRDS_COMPUTER_HARDWARE"/>的实例
        /// </summary>
        public HRDS_COMPUTER_HARDWARE()
        {
        }
        /// <summary>
        /// 主键
        /// </summary>
        public virtual string HARDWAREID { get; set; }

        		
        /// <summary>
        /// 拓扑图外键
        /// </summary>
        public virtual string GNETID { get; set; }

    		
        /// <summary>
        /// 硬件名称
        /// </summary>
        public virtual string HARDWARENAME { get; set; }

    		
        /// <summary>
        /// 硬件描述
        /// </summary>
        public virtual string HARDWAREDESCRIPTION { get; set; }

    		
        /// <summary>
        /// 制造日期
        /// </summary>
        public virtual DateTime? MARKTIME { get; set; }

    		
        /// <summary>
        /// 备注
        /// </summary>
        public virtual string REMARK { get; set; }

    		
        public override bool Equals(object obj)
        {
            HRDS_COMPUTER_HARDWARE model = obj as HRDS_COMPUTER_HARDWARE;
            return model != null && (ReferenceEquals(HARDWAREID,null) ? ReferenceEquals(model.HARDWAREID, null) : HARDWAREID.Equals(model.HARDWAREID));
        }
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();
            hash = (hash * 397) ^ (ReferenceEquals(HARDWAREID, null) ? 0 : HARDWAREID.GetHashCode());
            return hash;
        }
    }
}
